Package com.cisco.pt.impl
Class MACAddressImpl
java.lang.Object
com.cisco.pt.impl.MACAddressImpl
- All Implemented Interfaces:
MACAddress
- Author:
- packettracerexapps@external.cisco.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]static MACAddressprotected voidsetBytes(byte[] newBytes)
-
Field Details
-
MACADDRESS_BYTES
public static final int MACADDRESS_BYTES- See Also:
-
-
Constructor Details
-
MACAddressImpl
public MACAddressImpl(byte[] newBytes) - Parameters:
newBytes- byte[]
-
MACAddressImpl
- Parameters:
dottedHexStr- String- Throws:
NumberFormatException
-
-
Method Details
-
setBytes
protected void setBytes(byte[] newBytes) -
getDottedHexString
- Specified by:
getDottedHexStringin interfaceMACAddress- Returns:
String
-
getHexString
- Specified by:
getHexStringin interfaceMACAddress- Returns:
String
-
parseMACAddress
- Parameters:
s- String- Returns:
MACAddress
-
getByteArrayValue
public byte[] getByteArrayValue()- Specified by:
getByteArrayValuein interfaceMACAddress- Returns:
- byte array
-